<template>
	<div class="query-form">
		<div class="form-row">
			<div class="form-item">
				<label>患者姓名</label>
				<el-input
					v-model="queryParams.patName"
					placeholder="请输入患者姓名"
					clearable
				/>
			</div>
			<div class="form-item">
				<label>身份证号</label>
				<el-input
					v-model="queryParams.idCard"
					placeholder="请输入身份证号"
					clearable
				/>
			</div>
		</div>
		<div class="form-row">
			<div class="form-item">
				<label>检查单号</label>
				<el-input
					v-model="queryParams.examSeq"
					placeholder="请输入检查单号"
					clearable
				/>
			</div>
			<div class="form-item">
				<label>数据类型</label>
				<el-select v-model="queryParams.dataType">
					<el-option label="类型1" value="1" />
					<el-option label="类型2" value="2" />
				</el-select>
			</div>
		</div>
	</div>
</template>

<script setup>
import { reactive } from "vue";
import { ElInput, ElSelect, ElOption } from "element-plus";

// 查询参数（仅用于展示，不实际查询）
const queryParams = reactive({
	patName: "",
	idCard: "",
	examSeq: "",
	dataType: "1"
});
</script>

<style scoped>
.query-form {
	padding: 15px 0;
}

.form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
}

.form-item {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.form-item label {
	margin-bottom: 5px;
	font-weight: bold;
	color: #606266;
	font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.form-row {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 10px;
	}

	.form-item {
		width: 100%;
	}

	.form-item label {
		font-size: 12px;
	}
}
</style>
